@extends('admin.layout')
@section('title','专家列表')
@section('content')
                <div class="app_content_div" id="app_content_div_301Index">
                    <h3>专家列表</h3>
                </div>
                <div>
                    <div style="float:right;">
                        <a type="button" class="btn btn-primary" href="expert/create">新增</a>
                    </div>
                </div>
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>姓名</th>
                        <th>职称</th>
                        <th>科室</th>
                        <th>医院</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($oExpert as $v)
                        <tr>
                            <th scope="row">{{$v->id}}</th>
                            <td>{{$v->name}}</td>
                            <td>{{$v->name}}</td>
                            <td>{{$v->position}}</td>
                            <td>{{$v->department}}</td>
                            <td>
                                <a href="expert/{{$v->id}}/edit"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></a> &nbsp;&nbsp;&nbsp;
                                <form action="/adm/expert/{{$v->id}}" method="post">
                                    <input type="hidden" name="_method" value="DELETE">
                            {{csrf_field()}}
                                    <a><button type="submit" class="glyphicon glyphicon-trash" aria-hidden="true"></button></a>
                            </form>
                            </td>
                        </tr>
                    @endforeach

                    </tbody>
                </table>

    {{$oExpert->links('admin.page')}}
@endsection
